'Declaration
<ExtensionAttribute()> Public Overloads Shared Function CanSort(Of T As Class)( _ ByVal collectionView As ICollectionView(Of T), _ ByVal sortPath As String, _ ByVal direction As SortDirection _ ) As Boolean
'Usage
Dim collectionView As ICollectionView(Of T) Dim sortPath As String Dim direction As SortDirection Dim value As Boolean value = ICollectionViewEx.CanSort(Of T)(collectionView, sortPath, direction)
[Extension()] public static bool CanSort<T>( ICollectionView<T> collectionView, string sortPath, SortDirection direction ) where T: class
Parameters
- collectionView
- The collection view.
- sortPath
- The path of the data item to which the sort would be applied.
- direction
- Whether the sort is ascending or descending.
Type Parameters
- T